LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)
LOCAL_MODULE := liblive555
LOCAL_SRC_FILES := prebuilt/liblive555.so
include $(PREBUILT_SHARED_LIBRARY)

#Global Defines
FPV_SRC_FILES:= \
    FpvJni.cpp \
    rtsp_client.cpp 
	
FPV_C_INCLUDES += \
	$(LOCAL_PATH)/include/fpv_media \
	$(LOCAL_PATH)/include/h264disp \
	$(LOCAL_PATH)/include/live/BasicUsageEnvironment/include \
	$(LOCAL_PATH)/include/live/liveMedia/include \
	$(LOCAL_PATH)/include/live/BasicUsageEnvironment/include \
	$(LOCAL_PATH)/include/live/groupsock/include \
	$(LOCAL_PATH)/include/live/UsageEnvironment/include
		
FPV_LDLIBS     := -llog

FPV_SHARED_LIBRARIES := \
    libutils \
    libcutils \
	liblog \
	libfpv_net \
	liblive555

# Build for Andriod 6.0 libfpv_jni
include $(CLEAR_VARS)
LOCAL_MODULE_PATH := $(LOCAL_PATH) 

LOCAL_SRC_FILES := $(FPV_SRC_FILES)

LOCAL_C_INCLUDES := $(FPV_C_INCLUDES)

LOCAL_LDLIBS := $(FPV_LDLIBS)
	
LOCAL_SHARED_LIBRARIES := \
    $(FPV_SHARED_LIBRARIES)

LOCAL_MODULE:= libfpv_jni

LOCAL_MODULE_TAGS := debug

include $(BUILD_SHARED_LIBRARY)

